﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DATA;
namespace BUS
{
    public class ManufacturerBUS
    {
        public List<Manufacturer> GetAllManufacturers()
        {
            ManufacturerREP acc = new ManufacturerREP();
            return acc.GetAllManufacturers();
        }
        public List<Manufacturer> GetActiveManufacturer()
        {
            ManufacturerREP acc = new ManufacturerREP();
            return acc.GetActiveManufacturer();
        }

        public bool AddManufacturer(Manufacturer newAccount)
        {
            ManufacturerREP acc = new ManufacturerREP();
            return acc.AddManufacturer(newAccount);
        }
        public void Delete(int Accountid)
        {
            ManufacturerREP acc = new ManufacturerREP();
            acc.deleteManufacturer(Accountid);
        }
        public bool UpdateManufacturer(Manufacturer accountup)
        {
            ManufacturerREP acc = new ManufacturerREP();
            return acc.UpdateManufacturer(accountup);


        }
    }
}
